import request from '@/utils/request'

// 查询供应商维护列表
export function listSuppliermaintenance(query) {
  return request({
    url: '/gyl/suppliermaintenance/list',
    method: 'get',
    params: query
  })
}

// 查询供应商维护详细
export function getSuppliermaintenance(id) {
  return request({
    url: '/gyl/suppliermaintenance/' + id,
    method: 'get'
  })
}

// 新增供应商维护
export function addSuppliermaintenance(data) {
  return request({
    url: '/gyl/suppliermaintenance',
    method: 'post',
    data: data
  })
}

// 修改供应商维护
export function updateSuppliermaintenance(data) {
  return request({
    url: '/gyl/suppliermaintenance',
    method: 'put',
    data: data
  })
}

// 删除供应商维护
export function delSuppliermaintenance(id) {
  return request({
    url: '/gyl/suppliermaintenance/' + id,
    method: 'delete'
  })
}
